#include <stdio.h>
void nine_nine(int x)
{
	int a;
	for (int i = 1; i <= x; i++)
	{
		for (int j = 1; j <= x; j++)
		{
			int sum = i * j;
			printf("%d*%d=%-2d ", i, j, sum);
		}
		printf("\n");
	}
}

int main()
{
	int x;
	scanf_s("%d", &x);
	nine_nine(x);
	return 0;
}